<template>
  <van-tabs v-model:active="active">
    <van-tab v-for="item in channelList" :title="item.text" :key="item.id"></van-tab>
  </van-tabs>
</template>

<script lang='ts' setup>
import { ref } from 'vue';
import { getChannelListRequest } from '@/network/home';
import { InterfaceChannelList } from './home';


const active = ref(0)
const channelList = ref<InterfaceChannelList[]>([])

const getSwiperList = () => {
  getChannelListRequest().then((res: any) => channelList.value = res.result
  )
}
getSwiperList()
</script>
